package com.example.user.controller.auth.vo;

import com.example.user.constants.UserConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class PasswordUpdateVO extends UserSourceType {

    @Schema(title = "新密码")
    @NotNull
    @Pattern(regexp = UserConstants.PASSWORD_REGEX)
    private String newPassword;

    @Schema(title = "上一步发送的验证码")
    @NotBlank
    private String code;
}
